RESAMPLE
Section: User Commands (1)
Updated: 14 Jun 1991
Index
Return to Main Contents
NAME
resample - resample a mono or stereo sound file by an arbitrary factor
SYNOPSIS
resample
-b factor
[-f filterFile]
[-n]
[-a]
input.snd
output.snd
DESCRIPTION
The resample program takes a mono or stereo sound file and a
"sampling-rate conversion factor" r, specified as a floating-point number,
and produces an output sound file whose sampling rate is r times that
of the input file.
OPTIONS
- -byFactor
-
Specify conversion factor. This option is required. The conversion factor
is the amount by which the sampling rate is changed. If the sampling rate
of the input signal is Srate1, then the sampling rate of the output is
factor*Srate1. For example, a factor of 2.0 increases the sampling rate by
a factor of 2, giving twice as many samples in the output signal as in the
input.
- -filterFile
-
Change the resampling filter from its default.
Such a filter file can be
designed by the windowfilter (1) program. Two filter files are
preloaded in the resample program.
- -noInterp
-
By default, the filter table is linearly interpolated to provide high audio
quality at arbitrary sampling-rate conversion factors. This option turns
off linear interpolation, thus cutting the number of multiply-adds in half
in the inner loop (for most conversion factors).
- -aaaQuality
-
Select the 'triple-A quality' preloaded resampling filter. By default, you
get a filter which is good enough for most ears and most signals. The triple-A
filter is higher quality, but takes about five times longer to compute.
If both options -f and -aaa are present, the last one on the command line
takes effect.
REFERENCE
J. O. Smith and P. Gossett, "A Flexible Sampling-Rate Conversion Method,"
Proceedings of the IEEE Conference on Acoustics, Speech, and Signal Processing,
San Diego, CA, March, 1984.
Index
- NAME
-
- SYNOPSIS
-
- DESCRIPTION
-
- OPTIONS
-
- REFERENCE
-
This document was created by
man2html,
using the manual pages.
Time: 08:29:36 GMT, October 25, 2024